package com.lizy

import org.junit.Test

import java.time.LocalDateTime

class PrintTest {

    @Test
    public void test1() {
        println("Programming in groovy");
        println("is fab");

        println("Programming in groovy \nis fab");
    }

    @Test
    public void test2() {
        def staffNumber = 123;
        def staffSalary = 456.78;
        printf("%s%4s\n%d   %4.2f","STAFF","PAY",staffNumber,staffSalary);
    }

    @Test
    public void test3() {
        LocalDateTime now = LocalDateTime.now();
        printf(now.format("HH:mm:ss"))
    }
}
